

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_ROCKER_MODULES_BLOCK_1607506916516'] = function(block)
        {
            let x_pin = this.getFieldValue('x_pin');
let y_pin = this.getFieldValue('y_pin');
let b_pin = this.getFieldValue('b_pin');
let direction = this.getFieldValue('direction');
          
            Blockly.Arduino.definitions_['include_EXT_ROCKER_MODULES_BLOCK_1607506916516'] = ``;
            Blockly.Arduino.definitions_['define_EXT_ROCKER_MODULES_BLOCK_1607506916516'] = `#define JOYSTICK_X    ${x_pin}\r\n#define JOYSTICK_Y    ${y_pin}\r\n#define JOYSTICK_B    ${b_pin}`;
            Blockly.Arduino.definitions_['setup_EXT_ROCKER_MODULES_BLOCK_1607506916516'] = `pinMode(JOYSTICK_X, INPUT);\r\n  pinMode(JOYSTICK_Y, INPUT);\r\n  pinMode(JOYSTICK_B, INPUT);`;
             return  [`${direction}`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        